package com.xbfinance.manager.pojo.dto;


import java.util.List;

public class AdminPageResult<T> {
    //当前数量
    private Integer rows;
    //当前页
    private Integer page;
    //全部数量
    private Integer total;
    //全部页
    private Integer pages;
    //集合
    private List<T> docs;

    public AdminPageResult(Integer rows, Integer page, Integer total, Integer pages, List<T> docs) {
        this.rows = rows;
        this.page = page;
        this.total = total;
        this.pages = pages;
        this.docs = docs;
    }

    public AdminPageResult() {

    }

    public Integer getRows() {

        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    public List<T> getDocs() {
        return docs;
    }

    public void setDocs(List<T> docs) {
        this.docs = docs;
    }

    @Override
    public String toString() {
        return "AdminPageResult{" +
                "rows=" + rows +
                ", page=" + page +
                ", total=" + total +
                ", pages=" + pages +
                ", docs=" + docs +
                '}';
    }
}
